{% comment %} ----------------------------------------------------------------*\
 |  header.html                                                               |
 |                                                                            |
 |  Copyright (c) 2009-2010, Code A La Mode, original authors.                |
 |                                                                            |
 |      This file is part of imi-imi.                                         |
 |                                                                            |
 |      imi-imi is free software; you can redistribute it and/or modify       |
 |      it under the terms of the GNU General Public License as published by  |
 |      the Free Software Foundation, either version 3 of the License, or     |
 |      (at your option) any later version.                                   |
 |                                                                            |
 |      imi-imi is distributed in the hope that it will be useful,            |
 |      but WITHOUT ANY WARRANTY; without even the implied warranty of        |
 |      MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the         |
 |      GNU General Public License for more details.                          |
 |                                                                            |
 |      You should have received a copy of the GNU General Public License     |
 |      along with imi-imi.  If not, see <http://www.gnu.org/licenses/>.      |
\*------------------------------------------------------------- {% endcomment %}


<h1>Bookmarks</h1>

<h2>
    <span id="num_bookmarks">
        {% ifequal num_bookmarks -1 %}
            thousands
        {% else %}
            {{ num_bookmarks }}
        {% endifequal %}
    </span>

    {% if target_user or not target_words %}
        saved by
        {% if target_user %}
            <a href="/users/{{ target_user.email }}">{{ target_user.nickname }}</a>
            {% if friends %} &amp; friends{% endif %}{% if target_words %},{% endif %}
        {% else %}
            {% if not target_words %}everyone{% endif %}
        {% endif %}
    {% endif %}

    {% if target_words %}
        related to
        {% for target_word in target_words %}
            <a href="/search?query={{ target_word }}">{{ target_word }}</a>
        {% endfor %}
    {% endif %}
</h2>
